package cn.hdu.liang.command.remote;

public class Stereo {

    String location;

    public Stereo(String location) {
        this.location = location;
    }

    public void on() {
        System.out.println(location + " 音响开了");
    }

    public void off() {
        System.out.println(location + " 音响关了");
    }

    public void setCD() {
        System.out.println(location + " 音响CD放进去了");
    }

    public void setDVD() {
        System.out.println(location + " 音响DVD放进去了");
    }

    public void setRadio() {
        System.out.println(location + " 音响成收音机了");
    }

    public void setVolume(int volume) {
        System.out.println(location + " 音响音量设置为 " + volume);
    }

}
